package com.example.neusoft.yuejian_12.Service;

import com.example.neusoft.yuejian_12.JavaBean.AskList;
import com.example.neusoft.yuejian_12.JavaBean.Master;

import java.util.List;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Path;
import retrofit2.http.Query;

/**
 * Created by admin on 2017/9/30.
 */

public interface MasterService {
    //获取大师列表接口
    @GET("lists/mod/master")
    Call<List<Master>> getmasterlist(

    );

    //获取大师详情接口
    @GET("get/mod/master")
    Call<Master> getmasterinfo(
            @Query("id") String id);



    //获取大师视频接口
    @POST("get/mod/master/related/1/")
    Call<Master> getVideoList(
            @Query("id") String id,
            @Query("map") String mvideo

    );

    /**
     * 问大师列表
     * http://172.24.10.175/workout/api.php/lists/mod/masterfaq/master_id/2
     */
    @POST("lists/mod/masterfaq/")
    Call<List<AskList>> getAskList(
            @Query("master_id") String master_id
    );

    //大师问题评论
    @GET("create/mod/masterfaq/SessionID/lgj98rfkiqvenhrk2o7oe2po81")
    Call<Integer> insertComment(
            @Query("master_id") String master_id,
            @Query("user_id") String userid,
            @Query("question") String question

    );

    //大师收藏
    @GET("focus/SessionID/{SessionID}/userid/{userid}/fan_id/{fan_id}/fans_type/{fans_type}")
    Call<Integer> colmaster(
            @Path("SessionID") String SessionID,
            @Path("userid") String userid,
            @Path("fan_id") String fan_id,
            @Path("fans_type") String fans_type
    );

    //大师收藏状态
    @GET("isExits/mod/fans/fan_id/{fan_id}/userid/{userid}/fans_type/{fans_type}/SessionID/{SessionID}")
    Call<Integer> getState(
            @Path("fan_id") String fan_id,
            @Path("userid") String userid,
            @Path("fans_type") String fans_type,
            @Path("SessionID") String SessionID
    );






}
